import django
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import *

router = DefaultRouter()
# router.register(r'system-status', SystemStatusViewSet, basename='system-status')
router.register(r'firewall-status', FirewallStatusViewSet, basename='firewall-status')
router.register(r'port-scan', PortScanViewSet, basename='port-scan')
router.register(r'whois', WhoisViewSet, basename='whois-lookup')

urlpatterns = [
    path('system-status/', SystemStatusView.as_view(), name='system-status'),
    path('django-status/', DjangoStatusView.as_view(), name='django-status'),
    path('network-scan/', NetworkScanView.as_view(), name='network-scan'),
    path('ssh-connect/', SSHConnectView.as_view(), name='ssh-connect'),
    path('ssh-command/', SSHCommandView.as_view(), name='ssh-command'),
    path('api-statistics/', APIStatisticsView.as_view(), name='api-statistics'),
] + router.urls
